package zclients

import (
	"go.didapinche.com/goapi/outcall_thrift_service_api/v2"
	"go.didapinche.com/zeus-go/v2"
	"go.didapinche.com/zeus-go/v2/client"
)

func NewOutcallService(z *zeus.Zeus) (outcall_thrift_service_api.TChanOutcallThriftService, error) {
	c, err := client.New(z, "OutcallThriftService")
	if err != nil {
		//return nil, errors.Wrap(err, "create OutcallThriftService error")
		return nil, nil
	}

	tc := outcall_thrift_service_api.NewTChanOutcallThriftServiceClient(c)

	return tc, nil
}
